import request from '@/utils/request';
// 获取列表
export async function pageRealTimeData(data) {
  const res = await request.post('/RealTimeData', data);
  if (res.status === 0) {
    return res.data;
  }
  return Promise.reject(new Error(res.msg));
}
export async function pageCumulativeData(data) {
  const res = await request.post('/CumulativeData', data);
  if (res.status === 0) {
    return res.data;
  }
  return Promise.reject(new Error(res.msg));
}